<?

session_start();
require_once('Local_Settings.php');
require_once('../cart/inc/functions/Cart_Functions.php');
if (!(isset($_SESSION['myusername']) && $_SESSION['mypassword'] != '')) {
header ("Location: http://www.group3productions.info/admin/main_login.php");
}
include 'config.php';
$name=$_SESSION['myusername'];
$result = mysql_query("SELECT admin FROM klant WHERE email = '{$name}'");
if (!$result) {
    die("Query to show fields from table failed");
}
$row=mysql_fetch_array($result);

if($row['admin'] <> 1)
{
header ("Location: http://www.group3productions.info/index.php");
}


include "shortenstring.php";

?>

Succes!